package de.pmg_grandma;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class GameOverActivity extends Activity {
	public static GameOverActivity gameoveractivity;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		stopService(new Intent(this, AliveService.class));
		setContentView(R.layout.activity_gameover);
	}
	
	public void onButtonClick(View view){
		
		if(view.getId() == R.id.btn_gameOverAct_close){
			this.finish();
		}
		else if(view.getId() == R.id.btn_gameOverAct_reset){
			Intent intent = new Intent(this, MainActivity.class);
			intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			
			
			this.startActivity(intent);
			this.finish();
		}
	}
	

}
